#include "..\System.h"

//+ boxing/unboxing
internal System_Object *___boxchar(char value)
{
	System_Char *box = new(,System_Char);
	box->m_value = value;
	return (System_Object *)box;
}

internal char ___unboxchar(System_Object *value)
{
	return ((System_Char *)value)->m_value;
}

//+ type
Implement_Type(System_Char,System_Object,)
Implement_DefaultCtor(System_Char,System_Object)
System_Type _charType = { (__typeCtor)null, L"char", (__typeBoxer)&___boxchar, (__typeUnboxer)&___unboxchar, (char*)default(char), _TypeFlags_Value };
Declare_System(System_Char, char)
Implement_System(System_Char, char)
